<{extend name="../template/_article_base.html"}>


<{block name="body_sub_header"}>
<div class="hdp">
    <div class="slider " style="height:auto;">
        <div class="swiper-container wrap">
            <div class="swiper-wrapper">
                <div class="swiper-slide" style="height:auto;"><a href="/" target="_blank"><img src="/uploads/20180614/b0007c19ca1e6d01bc9197cfebc9a51f.jpg" alt=""></a> </div>
                <!--<div class="swiper-slide"><a href="javascript:;" target="_blank"><img src="javascript:;" alt="幻灯片二"></a> </div>
                <div class="swiper-slide"><a href="javascript:;" target="_blank"><img src="javascript:;" alt="幻灯片一"></a> </div>-->
            </div>
            <!-- Add Pagination -->
            <!--<div class="swiper-pagination"></div>-->
            <!-- Add Arrows -->
        </div>
    </div>
   <!-- <div class="swiper-button-next"><i class="fa fa-angle-right"></i></div>
    <div class="swiper-button-prev"><i class="fa fa-angle-left"></i></div>-->
</div>
<div class="clear"></div>
<{/block}>

<{block name="body_main"}>
<div class="main wrap">
<!--    <div class="mainnav">
        <ul>
            <li><a href="#" title="快速导航">快速导航</a></li>
            <li><a href="#" title="快速导航">快速导航</a></li>
            <li><a href="#" title="快速导航">快速导航</a></li>
            <li><a href="#" title="快速导航">快速导航</a></li>
            <li><a href="#" title="快速导航">快速导航</a></li>
            <li><a href="#" title="快速导航">快速导航</a></li>
            <li><a href="#" title="快速导航">快速导航</a></li>
            <li><a href="#" title="快速导航">快速导航</a></li>
        </ul>
    </div>-->
    <div class="homebody">
        <div class="mainbody">
            <div class="list">
                <ul id="infinitescroll">

                    <!-- 无图片列表 -->
                    <!--<li class="infinitescroll_li">

                        <div class="info" style="margin-left: 15px;">
                            <h3><a href="http://ecms154.99yuanma.net:8889/cyzx/2017-05-08/539.html" title="文字">文字</a></h3>
                            <p>文字&nbsp;...</p>
                            <span>
                                <a href="http://ecms154.99yuanma.net:8889/e/space/listuseract.php?mid=1&tempid=11&userid=1">
                                    <img src="http://ecms154.99yuanma.net:8889/skin/ecms154/images/0.png" alt="admin">admin
                                </a>
                            </span>
                            <span><i class="fa fa-clock-o"></i>2017-05-08</span>
                            <span><i class="fa fa-eye"></i>317浏览</span>
                            <span><i class="fa fa-commenting"></i>3</span>
                        </div>
                    </li>-->

                    <?php $articles = db('article')->where([])->order('add_time desc')->limit(0,10)->paginate(10); ?>

                    <?php foreach($articles as $key => $article) { ?>
                    <li class="infinitescroll_li">
                        <div class="img">
                            <a href="<?php echo url('index/article/detail',array('id'=>$article['id'])); ?>" title="<{$article.title}>">
                                <?php if(empty($article['cover'])){ ?>
                                    <img src="/static/images/logo.png" alt="<{$article.title}>">
                                <?php }else{ ?>
                                    <img src="<{$article.cover}>" alt="<{$article.title}>">
                                <?php } ?>
                            </a>
                        </div>
                        <div class="info">
                            <h3><a href="<?php echo url('index/article/detail',array('id'=>$article['id'])); ?>" title="<{$article.title}>"><{$article.title}></a></h3>
                            <p><{$article.desc}></p>
                            <span>
                                <a href="<?php echo url('index/article/detail',array('id'=>$article['id'])); ?>">
                                    <img src="/static/images/logo.png" alt="<{$article.auth}>"><{$article.auth}>
                                </a>
                            </span>
                            <span><i class="fa fa-clock-o"></i><?php echo date('Y-m-d'); ?></span>
                            <span><i class="fa fa-eye"></i><{$article.pv}>浏览</span>
                            <span><i class="fa fa-commenting"></i><{$article.comments}></span>
                        </div>
                    </li>
                    <?php  } ?>
                </ul>
                <div class="clear"></div>
                <?php echo $articles->render(); ?>
            </div>

        </div>

    </div>
</div>
<{/block}>


<{block name="body_friend_link"}>
<div class="homelink">
    <div class="wrap">
        <h6>友情链接</h6>
        <ul>
            <li><a href="http://www.yuanbaohua.top" target="_blank">宝华博客</a></li>
            <li><a href="http://www.github.com" target="_blank">github</a></li>
        </ul>
    </div>
</div>
<{/block}>